﻿using System;
using System.Collections.Generic;
using System.Text;

using SwinGame;

namespace SurvivalNN.src
{

    public enum PropType
    {
        IMG = 0,
        SOURCE_FOOD = 1,
        SOURCE_WARMTH = 2,
    }

    public class PositionChangeEvent : EventArgs
    {
        public Vector _oldPosition = new Vector();
        public Vector _newPosition = new Vector();

        public PositionChangeEvent(Vector oldPos, Vector newPos)
        {
            _oldPosition = oldPos;
            _newPosition = newPos;
        }
    }

    public class MovePropEventArgs : EventArgs
    {
        public Vector _v = new Vector();
        public bool _isRelative = true;

        public MovePropEventArgs(Vector v, bool isRelative) { _v = v; _isRelative = isRelative; }
    }

    //Prop Specific Data
    interface IPropModel
    {
        PropType PropType { set; get; }
    }

    //Position Data
    interface IEntitySubModel
    {
        Vector Position { set; get; }
        event EventHandler<PositionChangeEvent> PositionChangeHandler;
        void MovePositionResponse(object o, MovePropEventArgs eventargs);
    }
}
